package utils

import (
	"github.com/go-redis/redis/v7"
)

var client *redis.Client

func GetRedisClient() (*redis.Client, error) {
	client = redis.NewClient(&redis.Options{
		Addr:     "localhost:6379",
		Password: "",
		DB:       0,
	})
	_, err := client.Ping().Result()
	return client, err
}